package kr.ragne.letsparissql;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DBHelper extends SQLiteOpenHelper {
	static final int VERSION = 1;

	public DBHelper(Context context) {
		super(context, "pariRank.db", null, VERSION);
	}

	@Override
	public void onCreate(SQLiteDatabase db) {
		db.execSQL("CREATE TABLE pari( _id INTEGER PRIMARY KEY AUTOINCREMENT," + "score INTEGER," + "data TEXT);");
	}

	@Override
	public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
		db.execSQL("DROP TABLE pari;");
	}

}
